// api处理
const baseUrl = 'http://121.201.18.11/api/admin.';//测试环境
// const baseUrl = 'http://rights.leyogame.cn/api/admin.';//正式环境

import baseApi from './module/base';
import article_typeApi from './module/article_type';
import articleApi from './module/article';
import categoryApi from './module/category';
import game_giftApi from './module/game_gift';
import game_typeApi from './module/game_type';
import gameApi from './module/game';
import product_typeApi from './module/product_type';
import rightsApi from './module/rights';
import userApi from './module/user';
import cardApi from './module/card';
import bannerApi from './module/banner';
import seckillApi from './module/seckill';
import lotteryApi from './module/lottery';
import integral_goodsApi from './module/integral_goods';
import couponApi from './module/coupon';
import integral_couponApi from './module/integral_coupon';
import integral_taskApi from './module/integral_task';
import pushApi from './module/push';
import ordersApi from './module/orders';


const base = new baseApi(baseUrl);
const article_type = new article_typeApi(baseUrl);
const article = new articleApi(baseUrl);
const category = new categoryApi(baseUrl);
const game_gift = new game_giftApi(baseUrl);
const game_type = new game_typeApi(baseUrl);
const game = new gameApi(baseUrl);
const product_type = new product_typeApi(baseUrl);
const rights = new rightsApi(baseUrl);
const user = new userApi(baseUrl);
const card = new cardApi(baseUrl);
const banner = new bannerApi(baseUrl);
const seckill = new seckillApi(baseUrl);
const lottery = new lotteryApi(baseUrl);
const push = new pushApi(baseUrl);
const orders = new ordersApi(baseUrl);

const integral_goods = new integral_goodsApi(baseUrl);
const coupon = new couponApi(baseUrl);
const integral_coupon = new integral_couponApi(baseUrl);
const integral_task = new integral_taskApi(baseUrl);


export default {
    baseUrl,
    ...base,
    ...article_type,
    ...article,
    ...category,
    ...game_gift,
    ...game_type,
    ...game,
    ...product_type,
    ...rights,
    ...user,
    ...card,
    ...banner,
    ...seckill,
    ...lottery,
    ...integral_goods,
    ...coupon,
    ...integral_coupon,
    ...integral_task,
    ...push,
    ...orders

}